package org.sy.lab.Java7并发编程实战.七定制并发类.七定制运行在ForkJoin框架中的任务;

import java.util.concurrent.ForkJoinPool;

public class Main {
	public static void main(String[] args) {
		int array[] = new int[10000];
		ForkJoinPool pool = new ForkJoinPool();
		Task task = new Task("Task", array, 0, array.length);
		pool.invoke(task);
		pool.shutdown();
		System.out.printf("Main: End of the program.\n");
	}
}
